const fs = require("fs");

fs.writeFile("./20240119/note.txt", "hi node", function (err) {
  if (err === null) {
    console.log("success");
    fs.readFile("./20240119/note.txt", (err, data) => {
      if (err === null) {
        console.log(data.toString());
      }
    });
  } else {
    console.log(err);
  }
});
